package tv.acgn.advertisement.search.indexobejct;


import lombok.Builder;
import lombok.Data;

/**
 * @author : junG
 * @program : advertisement-ad-search-index-object
 * @description :  推广计划关键词索引对象 IndexObject
 * @date : 2019-07-07 23:23
 **/

@Data
@Builder
public class AdUnitKeywordIO {

    private String unitKeywordId;

    private String unitId;

    private String keyword;

    /**
     * 空索引对象
     * 避免击穿索引层
     * @return AdPlanIO
     */
    public static AdUnitKeywordIO emptyIO() {
        return AdUnitKeywordIO.builder()
            .unitKeywordId("empty_AdUnitKeywordIO")
            .unitId("empty_unit")
            .keyword("未找到索引")
            .build();
    }
}
